const path = require('path');

const config = {
  ROOT_DIR: __dirname,
  URL_PORT: {{serverPort}}{{^serverPort}}3000{{/serverPort}},
  URL_PATH: '{{serverHost}}{{^serverHost}}http://localhost{{/serverHost}}',
  BASE_VERSION: '{{contextPath}}{{^contextPath}}v2{{/contextPath}}',
  CONTROLLER_DIRECTORY: path.join(__dirname, 'controllers'),
  PROJECT_DIR: __dirname,
};
config.OPENAPI_YAML = path.join(config.ROOT_DIR, 'api', 'openapi.yaml');
config.FULL_PATH = `${config.URL_PATH}:${config.URL_PORT}/${config.BASE_VERSION}`;
config.FILE_UPLOAD_PATH = path.join(config.PROJECT_DIR, 'uploaded_files');

module.exports = config;
